package miracle.joker.design.singleton;

public class SingletonDemo {

    public static void main(String[] args) {
        Singleton singleton1 = Singleton.getInstance();
        Singleton singleton2 = Singleton.getInstance();
        if (singleton1 == singleton2){
            singleton1.showMessage();
        }else {
            singleton1.showMessage();
            singleton2.showMessage();
        }
    }
}
